#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "header.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_pushButton_clicked();

    void on_comboBox_currentIndexChanged(int index);

    void on_time_button_clicked();
    
    void on_time_button2_clicked();

    void on_create_db_button_clicked();

private:
    Ui::MainWindow *ui;
    std::map<int, std::string> m_explorer_map;
    bool ReadConfig();
    bool ReadSqlConfig();

    QLabel *msgLabel = nullptr;

    std::string m_project_name;
    std::string m_sql_name;
    std::string m_sql_password;
};

#endif // MAINWINDOW_H
